
public class Robinet {
	
	private float x;
	private float y;
	private float w;
	private float h;
	private int r;
	private int g;
	private int b;
	
	private float vx; 
	private float vy;
	
	public Robinet(float x, float y){
		this.x = x;
		this.y = y;
		this.vx = 0;
		this.vy = 0;
		
		this.w = 20;
		this.h = 10;
		this.r = 255;
		this.g = 0;
		this.b = 0;
	}
	
	public void drawRobinet(GraphicsWrapper gw){
		gw.setColor(this.r, this.g, this.b);
		gw.drawRect(this.x, this.y, this.w, this.h);
		gw.drawLine(x+(w/2), y+(h/2), (x+(w/2))+vx, (y+(h/2))+vy);
	}
	
	public float getX() {
		return this.x;
	}
	
	public float getY() {
		return this.y;
	}
	
	public void setVx(float vx) {
		this.vx = vx;
	}
	
	public void setVy(float vy) {
		this.vy = vy;
	}
	
	public float getVx() {
		return this.vx;
	}
	
	public float getVy() {
		return this.vy;
	}
}
